// TabControl.h: interface for the TabControl class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_TABCONTROL_H__B887E0CD_170E_4807_A3EB_2F19B478623A__INCLUDED_)
#define AFX_TABCONTROL_H__B887E0CD_170E_4807_A3EB_2F19B478623A__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "awtwin.h"

class AWTWIN_EXPORT TabControl : public AWTContainer  
{
public:
	TabControl();
	virtual ~TabControl();

	void setActivePanel(int index);
	void peerResized();

	AWTComponent* add(LPTSTR name, AWTComponent* comp)
	{
		comp->setBackground(new AWTColor(::GetSysColor(COLOR_3DFACE)));
		return AWTContainer::add(name, comp);
	}
	virtual void validate();

protected:
	CWnd* createComponent();

private:
	AWTComponent* m_cmpActive;
};

#endif // !defined(AFX_TABCONTROL_H__B887E0CD_170E_4807_A3EB_2F19B478623A__INCLUDED_)
